<template>
  <el-card shadow="never">
    <record-form @search="handleSearch" class="mb20" ref="recordForm" />
    <record-table ref="recordTable" />
  </el-card>
</template>

<script>
import RecordForm from './form'
import RecordTable from './table'

export default {
  components: {
    RecordTable,
    RecordForm
  },
  methods: {
    handleSearch(values) {
      this.$refs.recordTable.handleGetList(values)
    },
    edit(obj) {
      this.$refs.recordForm.edit(obj)
      this.$refs.recordTable.edit(obj)
    }
  }
}
</script>

<style>
</style>